enum Temperature {
    case celsius(Double)
    case fahrenheit(Double)

    init(kelvin: Double) {
        let celsiusValue = kelvin - 273.15
        self = .celsius(celsiusValue)
    }
}

let temp = Temperature(kelvin: 298.15)
print(temp)  // 输出: celsius(25.0)
